<%layout("/common/layout.html"){%>

<div class="am-g am-g-fixed blog-g-fixed">

    <div class="am-u-md-8">

        <ol class="am-breadcrumb">
            <li><a href="#" class="am-icon-home">首页</a></li>
            <li class="am-active">个人信息</li>
        </ol>

        <form action="${base}/user/editInfo" method="post" class="am-form am-form-horizontal">
            <div class="am-form-group">
                <label for="user-name" class="am-u-sm-3 am-form-label">昵称 / Name</label>
                <div class="am-u-sm-9">
                    <input type="text" name="name" id="user-name" value="${session.user.name}" placeholder="姓名 / Name">
                    <small>输入你的名字，让我们记住你。</small>
                </div>
            </div>


            <div class="am-form-group">
                <label for="user-phone" class="am-u-sm-3 am-form-label">电话 / Telephone</label>
                <div class="am-u-sm-9">
                    <input type="email" name="phone" id="user-phone" value="${session.user.phone!}" placeholder="输入你的电话号码 / Telephone">
                </div>
            </div>

            <div class="am-form-group">
                <label for="user-QQ" class="am-u-sm-3 am-form-label">QQ</label>
                <div class="am-u-sm-9">
                    <input type="email" name="qq" id="user-QQ" value="${session.user.qq!}" placeholder="输入你的QQ号码">
                </div>
            </div>

            <div class="am-form-group">
                <label for="user-location" class="am-u-sm-3 am-form-label">宿舍位置</label>
                <div class="am-u-sm-9">
                    <input type="text" name="location" id="user-location" value="${session.user.location!}" placeholder="输入你的宿舍位置">
                </div>
            </div>

            <div class="am-form-group">
                <label for="user-intro" class="am-u-sm-3 am-form-label">简介 / Intro</label>
                <div class="am-u-sm-9">
                    <textarea name="content" rows="5" id="user-intro" placeholder="输入个人简介">${session.user.feeling!}</textarea>
                    <small>200字以内写出你的一生...</small>
                </div>
            </div>

            <div class="am-form-group">
                <div class="am-u-sm-9 am-u-sm-push-3">
                    <button type="submit" class="am-btn am-btn-primary">保存修改</button>
                </div>
            </div>
        </form>

    </div>
    <%include("/common/right.html"){}%>
</div>
<%}%>